<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2015 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// [ 应用入口文件 ]
if(!file_exists(__DIR__ . '/../data/install.lock')){
    define('BIND_MODULE', 'install');
}
if(!file_exists(__DIR__ . '/../product.lock')){
	define('PRODUCT_STATE','formal');
	define('WX_APPID','wxfd5575e16acafdf8');
	define('WX_SECRET','08ab24865120d20a96f29c5abf42ddf1');
}else{
	define('PRODUCT_STATE','testing');
	define('WX_APPID','wxfd5575e16acafdf8');
	define('WX_SECRET','08ab24865120d20a96f29c5abf42ddf1');
}
// 定义应用目录
define('APP_PATH', __DIR__ . '/../application/');
// 定义应用缓存目录
define('RUNTIME_PATH', __DIR__ . '/../runtime/');
// 开启调试模式
define('APP_DEBUG', true);
define('APP_REQUEST',$_SERVER['REQUEST_URI']);
define('APP_HTTP_HOST',$_SERVER['HTTP_HOST']);
date_default_timezone_set('PRC');
define('NOW_TIME',date('Y-m-d H:i:s',time()));
define('FFMPEG_PATH', '/usr/local/ffmpeg2/bin/ffmpeg -i "%s" 2>&1');
// 加载框架引导文件
require __DIR__ . '/../thinkphp/start.php';
